﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Pku.BookStore.Model
{
    /// <summary>
    /// 
    /// </summary>	
    [DataContract]
    public class UserModel
    {
        #region props

        /// <summary>
        /// 用户ID
        /// </summary>
        [DataMember]
        public int UserID
        {
            get;
            set;
        }

        /// <summary>
        /// 用户等级（0 普通用户 1VIP用户）
        /// </summary>
        [DataMember]
        public short LevelID
        {
            get;
            set;
        }

        /// <summary>
        /// 用户名
        /// </summary>
        [DataMember]
        public string UserName
        {
            get;
            set;
        }

        /// <summary>
        /// 登录密码
        /// </summary>
        [DataMember]
        public string UserPwd
        {
            get;
            set;
        }

        /// <summary>
        /// 真实姓名
        /// </summary>
        [DataMember]
        public string TrueName
        {
            get;
            set;
        }

        /// <summary>
        /// 注册邮箱
        /// </summary>
        [DataMember]
        public string Email
        {
            get;
            set;
        }

        /// <summary>
        /// 用户电话
        /// </summary>
        [DataMember]
        public string Phone
        {
            get;
            set;
        }

        /// <summary>
        /// 用户手机
        /// </summary>
        [DataMember]
        public string Mobile
        {
            get;
            set;
        }

        /// <summary>
        /// 用户地址
        /// </summary>
        [DataMember]
        public string Address
        {
            get;
            set;
        }

        /// <summary>
        /// 邮编
        /// </summary>
        [DataMember]
        public string PostCode
        {
            get;
            set;
        }

        /// <summary>
        /// 安全问题
        /// </summary>
        [DataMember]
        public string Question
        {
            get;
            set;
        }

        /// <summary>
        /// 安全问题答案
        /// </summary>
        [DataMember]
        public string Answer
        {
            get;
            set;
        }

        /// <summary>
        /// 注册时间
        /// </summary>
        [DataMember]
        public DateTime RegTime
        {
            get;
            set;
        }

        /// <summary>
        /// 最后一次登录时间
        /// </summary>
        [DataMember]
        public DateTime LastLoginTime
        {
            get;
            set;
        }

        /// <summary>
        /// 最后登录IP
        /// </summary>
        [DataMember]
        public string LastIP
        {
            get;
            set;
        }

        /// <summary>
        /// 省份
        /// </summary>
        [DataMember]
        public string Province
        {
            get;
            set;
        }

        /// <summary>
        /// 城市
        /// </summary>
        [DataMember]
        public string City
        {
            get;
            set;
        }

        /// <summary>
        /// 区县
        /// </summary>
        [DataMember]
        public string Area
        {
            get;
            set;
        }

        /// <summary>
        /// 性别（0 男 1女）
        /// </summary>
        [DataMember]
        public short Gender
        {
            get;
            set;
        }

        /// <summary>
        /// 用户是否锁定
        /// </summary>
        [DataMember]
        public short IsLock
        {
            get;
            set;
        }

        #endregion
    }

}

